const missionXnQuestJsonFile = {
  startJson: "adbss1_1753928284.json",
  completeJson: "adbss_01_1754446572.json",
  completeJsonUse: "f1_abs_1753415202.json",
  competeHLT_FACT_QuestJson: "abs_交荒猎团声望任务_1754632447.json",
}

const dev = new (class {
  apiDomain = 'https://wonew-wss-dev.frp.wonew.top';
  wssUrl = 'wss://wonew-wss-dev.frp.wonew.top/websocket';
  encryptKey = 'wonew';
  missionXnQuestJsonFile = missionXnQuestJsonFile;
})();

const prodWow1 = new (class {
  apiDomain = 'https://wonew-wss.frp.wonew.top';
  wssUrl = 'wss://wonew-wss.frp.wonew.top/websocket';
  encryptKey = 'wonew';
  missionXnQuestJsonFile = missionXnQuestJsonFile;
})();

const prodWow3 = new (class {
  apiDomain = 'https://wonew-wss1.frp.wonew.top';
  wssUrl = 'wss://wonew-wss1.frp.wonew.top/websocket';
  encryptKey = 'wonew';
  missionXnQuestJsonFile = missionXnQuestJsonFile;
})();

const prodWow4 = new (class {
  apiDomain = 'https://wonew-wss4.frp.wonew.top';
  wssUrl = 'wss://wonew-wss4.frp.wonew.top/websocket';
  encryptKey = 'wonew';
})();

function getCurAccount() {
  let account = "wow1"
  try {
    account = JSON.parse(localStorage.getItem("account"))
  } catch (e) {}
  return account
}



const environment = process.env.NODE_ENV === 'production' || 1 ? (getCurAccount() === "wow4" ? prodWow4 : getCurAccount() === "wow3" ? prodWow3 : prodWow1) : dev;

export default environment;
